import payRechargePackageApi from '@/api/declaration/pay/payRechargePackageApi'
import httpRequest from '@/config/axios/httpRequest'
import { WalletRechargePackageModel } from '@/models/pay/WalletRechargePackageModel'



// 查询套餐充值列表
export const getWalletRechargePackagePage = async (params) => {
  return await httpRequest.get(payRechargePackageApi.GetWalletRechargePackagePage, { params })
}

// 查询套餐充值详情
export const getWalletRechargePackage = async (id: number) => {
  return await httpRequest.get(payRechargePackageApi.GetWalletRechargePackage, { params: { id } })
}

// 新增套餐充值
export const createWalletRechargePackage = async (data: WalletRechargePackageModel) => {
  return await httpRequest.post(payRechargePackageApi.CreateWalletRechargePackage, data)
}

// 修改套餐充值
export const updateWalletRechargePackage = async (data: WalletRechargePackageModel) => {
  return await httpRequest.put(payRechargePackageApi.UpdateWalletRechargePackage, data)
}

// 删除套餐充值
export const deleteWalletRechargePackage = async (id: number) => {
  return await httpRequest.delete(payRechargePackageApi.DeleteWalletRechargePackage, { params: { id } })
}
